<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<h3><fmt:message key="event.all.heading"/></h3>
<table class="borderedlist">
	<tr>
		<th><fmt:message key="event.name"/></th>
		<th><fmt:message key="event.description"/></th>
		<th>&nbsp;</th>
<c:forEach items="${model.events}" var="event">
	<tr>
		<td><a href="event.htm?id=<c:out value="${event.id}"/>"><c:out value="${event.name}"/></a></td>
		<td><c:out value="${event.description}"/></td>
		<td>
			<a href="eventedit.htm?id=<c:out value="${event.id}"/>"><img src="images/edit.png" alt="<fmt:message key="event.edit"/>"/></a>&nbsp;
			<a href="javascript:delete_event(<c:out value="${event.id}"/>);"><img src="images/delete.png" alt="<fmt:message key="event.delete"/>"/></a>
		</td>
	</tr>
</c:forEach>
</table>
<br/>
<form:form>
<input type="button" align="center" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="document.location='<c:url value="eventadd.htm"/>'" value="<fmt:message key="event.add.heading"/>"/>
</form:form>